import {baseResponse} from "@/api/base/baseModel.ts";

export interface categoryTypeResp {
    id: number | string,
    name: string,
    category1Id?: number | string
    category2Id?: number | string
}

export interface attrValueResp {
    id: number,
    valueName: string,
    attrId: number
}

export interface attrInfoResp {
    id: number,
    attrName: string,
    categoryId: number,
    categoryLevel: number,
    attrValueList: attrValueResp[]
}

export interface attrListResp extends baseResponse {
    data: attrInfoResp[]
}


export interface categoryResp extends baseResponse {
    data: categoryTypeResp[]
}

export interface attrResp extends baseResponse {
    data: string
}

export interface attrValue {
    id?: number,
    attrId: number,
    valueName: string,
    flag?: boolean
}

export interface addAttrValue {
    id?: number,
    attrName: string,
    categoryId: number | string,
    categoryLevel: number,
    attrValueList: attrValue[]
}





